﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Brand.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Shop.Brand" %>


<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>品牌管理</title>
    <meta charset="utf-8"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <%: Scripts.Render("~/Scripts/AdminBase") %>


    <%: Styles.Render("~/Content/Bootstrap/css") %>


    <style type="text/css">
        #dhtmltooltip {
            background-color: #cccccc;
            border-bottom: gray 1px solid;
            border-left: gray 1px solid;
            border-right: gray 1px solid;
            border-top: gray 1px solid;
            filter: progid:DXImageTransform.Microsoft.Shadow(color=gray, direction=120);
            font-size: 9pt;
            padding-bottom: 4px;
            padding-left: 4px;
            padding-right: 4px;
            padding-top: 4px;
            position: absolute;
            visibility: hidden;
            width: 150px;
            z-index: 100;
        }
    </style>
</head>
<body>
<div id="dhtmltooltip">
    <img src=""/>
</div>


<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server"/>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 98%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        <asp:Label ID="lblPath" runat="server"></asp:Label>
                    </td>
                    <td style="text-align: right; width: auto;">
                        <a href="Brand.aspx?Action=Add&ModelId=<%= Request["ModelId"] %>">添加品牌</a>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="Panel1" runat="server">
                <table cellspacing="0" cellpadding="6" width="100%" border="0">
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌名称：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入！"
                                                        ControlToValidate="txtName">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌Logo：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtSrcList" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入！"
                                                        ControlToValidate="txtSrcList">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌大图：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtSrcDetail" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌网址：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtWebsite" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            详细内容：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtContent" runat="server" Height="100px" TextMode="MultiLine" Width="317px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌标题：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtTitle" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入！"
                                                        ControlToValidate="txtTitle">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            网页关键字：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtKeywords" runat="server" Height="100px" TextMode="MultiLine"
                                         Width="320px">
                            </asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            网页备注：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtDescription" runat="server" Height="100px" TextMode="MultiLine"
                                         Width="321px">
                            </asp:TextBox>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td height="25" width="30%" align="right">
                            品牌拼音：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtPinyin" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌公司：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtCompany" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            是否显示：
                        </td>
                        <td height="25" align="left">
                            <asp:CheckBox ID="cbkIsShow" runat="server"/>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            &nbsp;
                        </td>
                        <td height="25" align="left">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right">
                            &nbsp;
                        </td>
                        <td height="25" align="left">
                            <asp:Button ID="btnOK" runat="server" Text="确定" Cssclass="btn btn-default" OnClick="btnOK_Click"/>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" GridLines="None" CssClass="table table-bordered table-condensed table-hover"
                              DataKeyNames="ID" OnRowDataBound="GV_List_RowDataBound"
                              OnRowDeleting="GV_List_RowDeleting" onrowcommand="GV_List_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <HeaderTemplate>
                                <input name="chkHeader" onclick=" javascript:SelectAll(this); " type="checkbox" value="chkHeader"/>
                            </HeaderTemplate>
                            <HeaderStyle Width="30px"/>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="ID">
                            <HeaderStyle Width="40px"/>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="品牌名称" DataField="Name"/>
                        <asp:TemplateField HeaderText="品牌Logo">
                            <ItemTemplate>
                                <img onmouseover=" javascript:ddrivetip('<img src=<%# Eval("SrcList") %>  />', '#ffffff'); "
                                     onmouseout=" hideddrivetip() " src="../Images/FileICO/jpg.gif" hasbox="2" alt=""/>
                            </ItemTemplate>
                            <HeaderStyle Width="60px"/>
                            <ItemStyle HorizontalAlign="Center"/>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="是否显示">
                            <ItemTemplate>
                                <asp:LinkButton ID="lblIsShow" CommandArgument='<%# Eval("ID") %>' runat="server" CommandName="IsShow" Text='<%# Eval("IsShow") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="60px"/>
                        </asp:TemplateField>
                        <asp:CommandField ShowDeleteButton="True" HeaderText="删除">
                            <ItemStyle HorizontalAlign="Center" Width="40px"/>
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle"/>
                </asp:GridView>
                <div class="WorkArea">
                    <asp:Button ID="btnDelSeletedID" runat="server" Text="删除选中" Style="cursor: hand"
                                EnableViewState="False" Cssclass="btn btn-default">
                    </asp:Button>
                    &nbsp;&nbsp; |&nbsp;&nbsp;
                </div>

                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" SubmitButtonclass="btn btn-default" OnPageChanging="PageNavigation1_PageChanging" PageSize="15">
                </WinnerCMS:PageNavigation>

            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</form>
</body>
</html>